package org.zjx.analysis.analyze.tap;

import org.zjx.command.util.ImageUtil;
import org.zjx.window.window.IWindow;

import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.Collections;

public class CACTabAnalysis extends BaseTabAnalysis {

    public CACTabAnalysis(IWindow window) {
        super("长安城", window);
    }

    @Override
    public Rectangle getContentArea() {
        return ImageUtil.createRect(10, 80, 554, 355);
    }

    @Override
    protected void initResources() {

    }

    @Override
    public Rectangle closeArea() {
        return null;
    }

    @Override
    public Rectangle getOriginBounds() {
        return ImageUtil.createRect(116, 79, 682, 494);
    }

    @Override
    public Rectangle getRefImageArea() {
        return ImageUtil.createRect(262, 24, 303, 37);
    }

    @Override
    public BufferedImage getRefImage() {
        BufferedImage bufferedImage = ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAACoAAAAOCAYAAABZ/o57AAAEH0lEQVR4XpVViVMTdxTOP9aBqFg6RUloEJGWRiSxdqS0hcSrhY7EOjBJUBShOQikAcompMQg91ElHoQmiCEgwmDtCIaCM1rAkenI67632R+7xB5+M9/su37vffuyu1Gkaewg0mDqhdzj7fBejv2tzMh3yfy0nEaZ/2GhG3pG5iA915FyluqTc/YddsKZi/3MlzLjSBO0+KJwQOuGq813WVwhLdreBvD3xlMO45Cx8G+AEEWgyNJvA2C1jYHFFiLaWieo5tkf62C1h3bI54oNftavrKqH6nbPQepP/Uw5dbGHrt7umCAUB4tEdPXPyA5q9G2wvrFFubPVAyQQqS5yU+xdoDrmoTmGC33ko60zCsL+DS4uAgqlxgYiEQFeKNrvH3FC99AsKy442Q7pmkZGbWkHxVG0GMP6K67bzBf77s93Uq2uvJN8o0nYKArlgjGyKyxDUGkehEv8L4D4zjJIPlKj87xdaIs3QjaizhmSCURKNypu+KDWRX6FeUBWi31VydoPCppgcnpZbE0YGluAxOo67Muzw55cG10R2M/SeAvau+5TD4Uyl2+WJCLQHydxF+qGUwSy4Tn1kPWxHZxt96D5pzBx8clzOu/qmEhhMzcBjvZxyPq0CbKPuqDBfZdqj5Vx0HnjgaA4CS44RVe90QcLj9cgPPk7aVNYbbdkhf8HFTW9oCsTfvp3QXG5l27UYLpBPtr+nhj/8v0Je/NsMDO/QkRU14/S1e2LUJ0Ct6PSOkGtbaLEwC9zZNfUj5B/vJwjH5nN1x34xEEbTVNfJWYcaqA6HIY+5kTOPFqhTUtjSOP5IJ1Bu3dkFuYXV8mOxp7C/fgSJPivxti9RarBhWCOhIpEBPqmmZDlxEt482abiZJSqa4jYg0iM/8HWT5P30JxY1XwH4XqeRGx2WUShXG8qdHQPPglj4N4RiEORCICfQ+Yn1UgPLfTD5+xmFJdy5imugS+YJQ17R+dhcKTP1LdxuYWbL7akpzbYZVF+DyJCEefQGvnr2Q7Wu/Al990ku3xTVC/o6X41qcInZKJ0ZYIm1lKvIDMw/WynJTnvg/wG1kTJidRcrZjV10d9AzHKfd66y9+s11kc9cnWezzUxw77+bCcPPOPMwtrKDQnUaIqfhTeDifIFuMF3wmPL+IK44RSM82M2bmXYYThlZweEKw+nyD1UnBBSKgKbJRr9OmLn5jXrJ7hqcpTzNONMF49DH5q2vrdAaxsfkaRm8/kgt98fKV2BvKK70yQXtzrBAaX6BcZfV1sDYMsloRsdkl2bmiL5phPCK8FAjLtQE2a0+OsJiK6iBbEuLi5T7Z4hBfV/j4v1CJGHXhNSg50y4TuJsZH9VC+sEa2K+xwjmTH0pOt0HmodqUOimVKjOcN3eDqrBeFv/PWZpa0H3lJvtv+6WRoOYA5AgAAAAASUVORK5CYII=");
        return ImageUtil.makeColorsTransparent(bufferedImage, Collections.singletonList(Color.WHITE));
    }
}
